package exception;

public class ApplicationDemo {
    public static void main(String[] args) {

        try {
            String s = "aaa";
            System.out.println(Integer.parseInt(s));
        } catch (NumberFormatException e) {
            System.out.println("出错了");
            System.out.println(  e.getMessage());
            e.printStackTrace();
        }
        System.out.println("程序结束");

    }
}
